package com.haoniu.module.domain.database;

import com.haoniu.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * qiuboyang
 */
public class RedPacketNumber extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 红包id
     */
    private Integer redPacketId;

    /**
     * 获取红包用户
     */
    private Integer userId;

    /**
     * 状态 0 未抢过 1 已抢过 2 已退回
     */
    private Integer status;

    /**
     * 每份红包金额
     */
    private BigDecimal money;

    /**
     * 是否处罚（1不处罚，2处罚对象 ）
     */
    private Integer isPunish;

    /**
     * 惩罚状态 0-未惩罚 1-已惩罚
     */
    private Integer punishStatus;

    /**
     * 处罚金额
     */
    private BigDecimal punishMoney;

    /**
     * 福利类型
     */
    private String welfareType;

    /**
     * 福利（无福利<0>，豹子<9.99>，顺子<8.88>,0.01<6.66>）
     */
    private BigDecimal welfare;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 抢包时间
     */
    private Date rabTime;

    private Long timestamp;

    /**
     * 状态
     */

    private Integer delFlag;

    /**
     * 房间id
     */

    private Integer roomId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRedPacketId() {
        return redPacketId;
    }

    public void setRedPacketId(Integer redPacketId) {
        this.redPacketId = redPacketId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public Integer getIsPunish() {
        return isPunish;
    }

    public void setIsPunish(Integer isPunish) {
        this.isPunish = isPunish;
    }

    public Integer getPunishStatus() {
        return punishStatus;
    }

    public void setPunishStatus(Integer punishStatus) {
        this.punishStatus = punishStatus;
    }

    public BigDecimal getPunishMoney() {
        return punishMoney;
    }

    public void setPunishMoney(BigDecimal punishMoney) {
        this.punishMoney = punishMoney;
    }

    public String getWelfareType() {
        return welfareType;
    }

    public void setWelfareType(String welfareType) {
        this.welfareType = welfareType;
    }

    public BigDecimal getWelfare() {
        return welfare;
    }

    public void setWelfare(BigDecimal welfare) {
        this.welfare = welfare;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getRabTime() {
        return rabTime;
    }

    public void setRabTime(Date rabTime) {
        this.rabTime = rabTime;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("redPacketId", getRedPacketId())
                .append("status", getStatus())
                .append("money", getMoney())
                .append("isPunish", getIsPunish())
                .append("punishStatus", getPunishStatus())
                .append("punishMoney", getPunishMoney())
                .append("welfareType", getWelfareType())
                .append("welfare", getWelfare())
                .append("createTime", getCreateTime())
                .append("delFlag", getDelFlag())
                .append("rabTime", getRabTime())
                .append("timestamp",getTimestamp())
                .append("roomId",getRoomId())
                .toString();
    }
}
